<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>tab</title>
<!-- css -->
<link id="v_theme" href="../../src/css/theme/aristo/theme.css" rel="stylesheet" type="text/css" />
<link href="../../src/css/primeui-1.1-min.css" rel="stylesheet" type="text/css" />
<!--lib js  -->
<script type="text/javascript" src="../../src/lib/vue.js"></script>
<script type="text/javascript" src="../../src/lib/jquery.min.js"></script>
<!-- js加载器 -->
<script type="text/javascript" src="../../src/loader/loader.js"></script>
<script type="text/javascript" src="../js/theme.js"></script>
</head>
<body>

<div id="tab1"></div>
<div id="tab1-cont">abc</div>


<script type="text/javascript">

VUI
.dir('../../src/') // 设置JS存放根目录
.use('Tab',function(){
	tab1 = new VUI.Tab({
		renderId:'tab1'
		,onSelect:function(title,index) {
			console.log('onSelect title:' + title + " index:" + index);
		}
		,items:[
			{title:'英文',contentId:'tab1-cont'}
			,{title:'中文',contentId:'tab1-cont'}
		]
	});
});

</script>
</body>
</html>